MOCK_PRODUCTS = [
	{
		"productId": "p1",
		"name": "轻薄笔记本 A1",
		"summary": "13.3英寸, 16GB/512GB, 重量1.2kg",
		"price": 5999
	},
	{
		"productId": "p2",
		"name": "全能本 Pro14",
		"summary": "14英寸, 32GB/1TB, RTX 4050",
		"price": 8999
	},
	{
		"productId": "p3",
		"name": "商务本 X",
		"summary": "15.6英寸, 16GB/1TB, 指纹识别",
		"price": 7599
	}
]

def list_products():
	return MOCK_PRODUCTS

def get_product(product_id: str):
	return next((p for p in MOCK_PRODUCTS if p["productId"] == product_id), None)


